﻿<script type="text/javascript">
    var intro_description_settings = {
        height: '120px',
        theme_advanced_buttons1: "bold,italic,underline,strikethrough,|,forecolor,backcolor,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect",
        theme_advanced_buttons2: "",
        theme_advanced_buttons3: ""
    };

</script>
<div class="box dialog" title="Giới thiệu công ty" style="width:810px; height:560px">
    @using (Ajax.BeginForm(AdminAjaxOptions.UpdateRecord))
    {
        <div class="dialog-content">
            <div style="float: left; width: 640px">
                <div class="form-cell" style="width: 580px">
                    <label>
                        Tóm tắt</label>
                    <textarea id="Description" name="Description" class="editor" settings="intro_description_settings">@ViewBag.Description</textarea>
                </div>
                <div class="form-cell" style="width: 580px">
                    <label>
                        Hình ảnh</label>
                    <input type="hidden" name="OldImage" value="@ViewBag.Image"/>
                    <input type="text" id="choose-avatar" name="NewImage" class="choose-file" />
                </div>
            </div>
            <div style="float: left; width: 150px; margin-top: 15px">
                <img id="upload-image-preview" alt="" src="@ViewBag.Image" width="150" />
            </div>
            <div class="form-cell none-float" style="width: 790px">
                <label>
                    Nội dung</label>
                <textarea id="Content" name="Content" class="editor">@ViewBag.Content</textarea>
            </div>
        </div>
        <div class="dialog-footer">
            <input value="@Html.Translate("Save")" type="submit" />
            <input value="@Html.Translate("Cancel")" type="button" onclick="closeDialog('.dialog')" />
        </div>
    }
</div>
